<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Data Structures for Sets and Graphs: datastruct/MultiLevelDirectlyAddressedSet.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Data Structures for Sets and Graphs
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.1.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Macros</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_f9af7c4329e6f916a6a58dc83cbb7ef1.html">datastruct</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">MultiLevelDirectlyAddressedSet.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="MultiLevelDirectlyAddressedSet_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#ifndef MULTILEVELDIRECTLYADDRESSEDSET_H_</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define MULTILEVELDIRECTLYADDRESSEDSET_H_</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#include &lt;stdlib.h&gt;</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &lt;stdio.h&gt;</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="BitTools_8h.html">BitTools.h</a>&quot;</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="BitMapDirectlyAddressedSet_8h.html">BitMapDirectlyAddressedSet.h</a>&quot;</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00031"></a><span class="lineno"><a class="code" href="classMultiLevelDirectlyAddressedSet.html">   31</a></span>&#160;<span class="keyword">class </span><a class="code" href="classMultiLevelDirectlyAddressedSet.html" title="An implementation of DirectlyAddressedSet using a static multilevel bitmap as data structure...">MultiLevelDirectlyAddressedSet</a> : <span class="keyword">public</span> <a class="code" href="classBitMapDirectlyAddressedSet.html" title="A DirectlyAddressedSet implemented with an array of nodes, each node corresponding to a word of the s...">BitMapDirectlyAddressedSet</a>&lt;T&gt; {</div>
<div class="line"><a name="l00032"></a><span class="lineno"><a class="code" href="classMultiLevelDirectlyAddressedSet.html#a4b0f810e99fba35d4846af44f24452f0">   32</a></span>&#160;        <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classMultiLevelDirectlyAddressedSet_1_1MultiIterator.html" title="A generic iterator on the set of elements.">MultiIterator</a>;</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div>
<div class="line"><a name="l00036"></a><span class="lineno"><a class="code" href="classMultiLevelDirectlyAddressedSet.html#a1fa981940bb9ab7f4249b9495d9d58a4">   36</a></span>&#160;        <span class="keywordtype">long</span>                                                    <a class="code" href="classMultiLevelDirectlyAddressedSet.html#a1fa981940bb9ab7f4249b9495d9d58a4" title="number of levels">h</a>;              </div>
<div class="line"><a name="l00037"></a><span class="lineno"><a class="code" href="classMultiLevelDirectlyAddressedSet.html#adeeb91470efa6dae57ebb79c628c4bc8">   37</a></span>&#160;        <a class="code" href="classBitMapDirectlyAddressedSet.html" title="A DirectlyAddressedSet implemented with an array of nodes, each node corresponding to a word of the s...">BitMapDirectlyAddressedSet&lt;T&gt;</a>** <a class="code" href="classMultiLevelDirectlyAddressedSet.html#adeeb91470efa6dae57ebb79c628c4bc8" title="levels of the structure">level</a>;  </div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;        <a class="code" href="classMultiLevelDirectlyAddressedSet.html#a758b187ed84a2db53979c4f78420345e" title="The base constructor.">MultiLevelDirectlyAddressedSet</a>(<span class="keywordtype">long</span> size);</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;</div>
<div class="line"><a name="l00063"></a><span class="lineno"><a class="code" href="classMultiLevelDirectlyAddressedSet_1_1MultiIterator.html">   63</a></span>&#160;        <span class="keyword">class </span><a class="code" href="classMultiLevelDirectlyAddressedSet_1_1MultiIterator.html" title="A generic iterator on the set of elements.">MultiIterator</a> : <span class="keyword">public</span> <a class="code" href="classDirectlyAddressedSet_1_1Iterator.html" title="A general iterator to scan a DirectlyAddressedSet.">DirectlyAddressedSet::Iterator</a>, <span class="keyword">protected</span> <a class="code" href="classBitTools.html">BitTools</a>&lt;T&gt; {</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;        <span class="keyword">protected</span>:</div>
<div class="line"><a name="l00065"></a><span class="lineno"><a class="code" href="classMultiLevelDirectlyAddressedSet_1_1MultiIterator.html#ae1bb9c9b30e9fc033fc3f44c4f32dc9a">   65</a></span>&#160;                <span class="keywordtype">long</span>                                                                                    <a class="code" href="classMultiLevelDirectlyAddressedSet_1_1MultiIterator.html#ae1bb9c9b30e9fc033fc3f44c4f32dc9a" title="result of last call to next() or nextUpTo() at a level">idxInNextNode</a>;  </div>
<div class="line"><a name="l00066"></a><span class="lineno"><a class="code" href="classMultiLevelDirectlyAddressedSet_1_1MultiIterator.html#a589c0c16726eaaf789af0fefaae4bd75">   66</a></span>&#160;                <span class="keyword">const</span> <span class="keywordtype">long</span>                                                                              <a class="code" href="classMultiLevelDirectlyAddressedSet_1_1MultiIterator.html#a589c0c16726eaaf789af0fefaae4bd75" title="number of levels">height</a>;                 </div>
<div class="line"><a name="l00067"></a><span class="lineno"><a class="code" href="classMultiLevelDirectlyAddressedSet_1_1MultiIterator.html#a562140b9ab113c40266bf81916a4de7c">   67</a></span>&#160;                <a class="code" href="classDirectlyAddressedSet_1_1Iterator.html" title="A general iterator to scan a DirectlyAddressedSet.">DirectlyAddressedSet::Iterator</a> ** <span class="keyword">const</span>                 <a class="code" href="classMultiLevelDirectlyAddressedSet_1_1MultiIterator.html#a562140b9ab113c40266bf81916a4de7c" title="iterator for each level">levelit</a>;                </div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;                <a class="code" href="classMultiLevelDirectlyAddressedSet_1_1MultiIterator.html#a704837adade6f663d1919e29a9da80e3" title="A constructor for a specified enclosed MultiLevelDirectlyAddressedSet&lt;T&gt;.">MultiIterator</a>(<a class="code" href="classMultiLevelDirectlyAddressedSet.html" title="An implementation of DirectlyAddressedSet using a static multilevel bitmap as data structure...">MultiLevelDirectlyAddressedSet&lt;T&gt;</a> * t);</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;                <a class="code" href="classMultiLevelDirectlyAddressedSet_1_1MultiIterator.html#a704837adade6f663d1919e29a9da80e3" title="A constructor for a specified enclosed MultiLevelDirectlyAddressedSet&lt;T&gt;.">MultiIterator</a>(<a class="code" href="classMultiLevelDirectlyAddressedSet.html" title="An implementation of DirectlyAddressedSet using a static multilevel bitmap as data structure...">MultiLevelDirectlyAddressedSet&lt;T&gt;</a> * t, <span class="keywordtype">long</span> l);</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;                <a class="code" href="classMultiLevelDirectlyAddressedSet_1_1MultiIterator.html#a704837adade6f663d1919e29a9da80e3" title="A constructor for a specified enclosed MultiLevelDirectlyAddressedSet&lt;T&gt;.">MultiIterator</a>(<a class="code" href="classMultiLevelDirectlyAddressedSet.html" title="An implementation of DirectlyAddressedSet using a static multilevel bitmap as data structure...">MultiLevelDirectlyAddressedSet&lt;T&gt;</a> * t, <a class="code" href="classBitMapDirectlyAddressedSet.html" title="A DirectlyAddressedSet implemented with an array of nodes, each node corresponding to a word of the s...">BitMapDirectlyAddressedSet&lt;T&gt;</a> * fiter, <a class="code" href="classFilter.html" title="It provides the ability of filtering the enumeration of a DirectlyAddressedSet.">Filter&lt;T&gt;</a> * fil);</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;        <span class="keyword">public</span>:</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;                <span class="comment">//destructor</span></div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;                <a class="code" href="classMultiLevelDirectlyAddressedSet_1_1MultiIterator.html#ab27100919856c7e7226b16ac0eefc4c0">~MultiIterator</a>();</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;                <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classMultiLevelDirectlyAddressedSet_1_1MultiIterator.html#ad3cd5226fa6f397a1bbe323fd4603851" title="Restarts the enumeration from a specified value (which is not required to be a key in the universe)...">restartFrom</a>(<span class="keywordtype">long</span> from);</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;                <span class="keyword">virtual</span> <span class="keywordtype">long</span> <a class="code" href="classMultiLevelDirectlyAddressedSet_1_1MultiIterator.html#a55915209b819c78735f38761be61c6ca" title="Enumerates the first key in the set next to the current cursor position.">next</a>();</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;                <span class="keyword">virtual</span> <span class="keywordtype">long</span> <a class="code" href="classMultiLevelDirectlyAddressedSet_1_1MultiIterator.html#aa692987322ed31614c52c43711011d9f" title="Enumerates the first key in the set next to the current cursor position up to a specified value...">nextUpTo</a>(<span class="keywordtype">long</span> to);</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;        };</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">long</span> <a class="code" href="classMultiLevelDirectlyAddressedSet.html#a9c0b92b3ac74b50c859bcecfbd274a5f" title="Adds a new level to the structure (optional operation).">newLevel</a>(BitMapDirectlyAddressedSetFactory&lt;T&gt; * f);</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">long</span> <a class="code" href="classMultiLevelDirectlyAddressedSet.html#a86b05a7f545453522513f67716b385fb">height</a>();</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;        <span class="keyword">virtual</span> <a class="code" href="classMultiLevelDirectlyAddressedSet.html#ac05d7577a98591900b8cc408f66906eb" title="A destructor.">~MultiLevelDirectlyAddressedSet</a>();</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;        <span class="keyword">virtual</span> <a class="code" href="classDirectlyAddressedSet.html" title="A static or dynamic set of elements with direct addressing.">DirectlyAddressedSet</a>* <a class="code" href="classMultiLevelDirectlyAddressedSet.html#aaf18952745f809e26f634ad47d75ca9a" title="Create a copy of this object.">clone</a>() <span class="keyword">const</span> = 0;</div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;        <span class="keyword">virtual</span> <a class="code" href="classDirectlyAddressedSet_1_1Iterator.html" title="A general iterator to scan a DirectlyAddressedSet.">DirectlyAddressedSet::Iterator</a>* <a class="code" href="classMultiLevelDirectlyAddressedSet.html#ae8e98bf9c0d8425405c7aa12d5d376fc" title="Starts a new iterator for this set.">newIterator</a>();</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;        <span class="keyword">virtual</span> <a class="code" href="classDirectlyAddressedSet_1_1Iterator.html" title="A general iterator to scan a DirectlyAddressedSet.">DirectlyAddressedSet::Iterator</a>* <a class="code" href="classMultiLevelDirectlyAddressedSet.html#ae8e98bf9c0d8425405c7aa12d5d376fc" title="Starts a new iterator for this set.">newIterator</a>(<span class="keywordtype">long</span> l);</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;        <span class="keyword">virtual</span> <a class="code" href="classDirectlyAddressedSet_1_1Iterator.html" title="A general iterator to scan a DirectlyAddressedSet.">DirectlyAddressedSet::Iterator</a>* <a class="code" href="classMultiLevelDirectlyAddressedSet.html#a4b72a8d1da82dabb9c7359cba6556130" title="Constructs a filtered iterator.">newSetIterator</a>(<a class="code" href="classBitMapDirectlyAddressedSet.html" title="A DirectlyAddressedSet implemented with an array of nodes, each node corresponding to a word of the s...">BitMapDirectlyAddressedSet&lt;T&gt;</a> * d, <a class="code" href="classFilter.html" title="It provides the ability of filtering the enumeration of a DirectlyAddressedSet.">Filter&lt;T&gt;</a> * f);</div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;        <span class="keyword">virtual</span> <a class="code" href="classDirectlyAddressedSet_1_1Iterator.html" title="A general iterator to scan a DirectlyAddressedSet.">DirectlyAddressedSet::Iterator</a>* <a class="code" href="classMultiLevelDirectlyAddressedSet.html#a9a2bdb4e574330b4f0680f2767cf1e2c" title="An Iterator for the complement of the set represented by the object.">newComplIterator</a>();</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;</div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">char</span> * <a class="code" href="classMultiLevelDirectlyAddressedSet.html#aff41b4ecea502a806cd47a1b28b25ba6" title="Returns an array containing all of the elements in this set in increasing order.">toArray</a>(<span class="keywordtype">long</span>* size);</div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;</div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classMultiLevelDirectlyAddressedSet.html#a00cf0bf943365934b341a0a69ddfcce0">isEmpty</a>();</div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classMultiLevelDirectlyAddressedSet.html#a37cc711f1f2685fed602ed79e28045b2" title="Add all the elements in the universe to the set.">allToSet</a>();</div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classMultiLevelDirectlyAddressedSet.html#ad23fa9172361ef5cb03fe9a01893a36d" title="Remove all the elements of the set.">allToCompl</a>();</div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">long</span> <a class="code" href="classMultiLevelDirectlyAddressedSet.html#a04c9ab9e7b0d700aefa6cb6db3fa11af" title="Determine the first element of the complement of the set represented by the current object...">firstInCompl</a>();</div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">long</span> <a class="code" href="classMultiLevelDirectlyAddressedSet.html#adccf217b384bf0b02164f29e56889e15">cardOfSet</a>();</div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">long</span> <a class="code" href="classMultiLevelDirectlyAddressedSet.html#af620d1b94b802559dc0d5784d9ad5276">cardOfCompl</a>();</div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;</div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;        <span class="comment">//DEBUG</span></div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="classMultiLevelDirectlyAddressedSet.html#a1c7124135232bc7a54c1e944babfae07">show</a>();</div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;</div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;};</div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;</div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00192"></a><span class="lineno"><a class="code" href="classMultiLevelDirectlyAddressedSet.html#ac05d7577a98591900b8cc408f66906eb">  192</a></span>&#160;<a class="code" href="classMultiLevelDirectlyAddressedSet.html#ac05d7577a98591900b8cc408f66906eb" title="A destructor.">MultiLevelDirectlyAddressedSet&lt;T&gt;::~MultiLevelDirectlyAddressedSet</a>() {</div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;}</div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;</div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00196"></a><span class="lineno"><a class="code" href="classMultiLevelDirectlyAddressedSet.html#a758b187ed84a2db53979c4f78420345e">  196</a></span>&#160;<a class="code" href="classMultiLevelDirectlyAddressedSet.html#a758b187ed84a2db53979c4f78420345e" title="The base constructor.">MultiLevelDirectlyAddressedSet&lt;T&gt;::MultiLevelDirectlyAddressedSet</a>(<span class="keywordtype">long</span> size) : <a class="code" href="classDirectlyAddressedSet.html" title="A static or dynamic set of elements with direct addressing.">DirectlyAddressedSet</a>(size), h(0), level(new <a class="code" href="classDirectlyAddressedSet.html" title="A static or dynamic set of elements with direct addressing.">DirectlyAddressedSet</a>*[this-&gt;inline_ceillog(size, this-&gt;logb)+1]) {</div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;}</div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;</div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00200"></a><span class="lineno"><a class="code" href="classMultiLevelDirectlyAddressedSet_1_1MultiIterator.html#a704837adade6f663d1919e29a9da80e3">  200</a></span>&#160;<a class="code" href="classMultiLevelDirectlyAddressedSet_1_1MultiIterator.html#a704837adade6f663d1919e29a9da80e3" title="A constructor for a specified enclosed MultiLevelDirectlyAddressedSet&lt;T&gt;.">MultiLevelDirectlyAddressedSet&lt;T&gt;::MultiIterator::MultiIterator</a>(<a class="code" href="classMultiLevelDirectlyAddressedSet.html" title="An implementation of DirectlyAddressedSet using a static multilevel bitmap as data structure...">MultiLevelDirectlyAddressedSet&lt;T&gt;</a>* t) : <a class="code" href="classDirectlyAddressedSet.html" title="A static or dynamic set of elements with direct addressing.">DirectlyAddressedSet</a>::<a class="code" href="classDirectlyAddressedSet_1_1Iterator.html" title="A general iterator to scan a DirectlyAddressedSet.">Iterator</a>(t), height(t-&gt;height), levelit(new <a class="code" href="classDirectlyAddressedSet.html" title="A static or dynamic set of elements with direct addressing.">DirectlyAddressedSet</a>::<a class="code" href="classDirectlyAddressedSet_1_1Iterator.html" title="A general iterator to scan a DirectlyAddressedSet.">Iterator</a>*[height]) {</div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;        <span class="keywordtype">int</span> i;</div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;        <span class="keywordflow">for</span> (i = 0; i &lt; <a class="code" href="classMultiLevelDirectlyAddressedSet_1_1MultiIterator.html#a589c0c16726eaaf789af0fefaae4bd75" title="number of levels">height</a>; i++)</div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;                <a class="code" href="classMultiLevelDirectlyAddressedSet_1_1MultiIterator.html#a562140b9ab113c40266bf81916a4de7c" title="iterator for each level">levelit</a>[i] = t-&gt;<a class="code" href="classMultiLevelDirectlyAddressedSet.html#adeeb91470efa6dae57ebb79c628c4bc8" title="levels of the structure">level</a>[i]-&gt;newIterator();</div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;        <a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#ae4eb65beabbaa126db89529f3d3e2f3a" title="Restarts the enumeration.">restart</a>();</div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;}</div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;</div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00208"></a><span class="lineno"><a class="code" href="classMultiLevelDirectlyAddressedSet_1_1MultiIterator.html#ac12f8b36f1dffb2b5986e93647e04126">  208</a></span>&#160;<a class="code" href="classMultiLevelDirectlyAddressedSet.html#a4b0f810e99fba35d4846af44f24452f0">MultiLevelDirectlyAddressedSet&lt;T&gt;::MultiIterator::MultiIterator</a>(<a class="code" href="classMultiLevelDirectlyAddressedSet.html" title="An implementation of DirectlyAddressedSet using a static multilevel bitmap as data structure...">MultiLevelDirectlyAddressedSet&lt;T&gt;</a>* t, <span class="keywordtype">long</span> l) : <a class="code" href="classDirectlyAddressedSet.html" title="A static or dynamic set of elements with direct addressing.">DirectlyAddressedSet</a>::<a class="code" href="classDirectlyAddressedSet_1_1Iterator.html" title="A general iterator to scan a DirectlyAddressedSet.">Iterator</a>(t), <a class="code" href="classMultiLevelDirectlyAddressedSet.html#a86b05a7f545453522513f67716b385fb">height</a>(l), levelit(new <a class="code" href="classDirectlyAddressedSet.html" title="A static or dynamic set of elements with direct addressing.">DirectlyAddressedSet</a>::<a class="code" href="classDirectlyAddressedSet_1_1Iterator.html" title="A general iterator to scan a DirectlyAddressedSet.">Iterator</a>*[<a class="code" href="classMultiLevelDirectlyAddressedSet.html#a86b05a7f545453522513f67716b385fb">height</a>]) {</div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;        <span class="keywordtype">int</span> i;</div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;        <span class="keywordflow">for</span> (i = 0; i &lt; <a class="code" href="classMultiLevelDirectlyAddressedSet_1_1MultiIterator.html#a589c0c16726eaaf789af0fefaae4bd75" title="number of levels">height</a>; i++)</div>
<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;                <a class="code" href="classMultiLevelDirectlyAddressedSet_1_1MultiIterator.html#a562140b9ab113c40266bf81916a4de7c" title="iterator for each level">levelit</a>[i] = t-&gt;<a class="code" href="classMultiLevelDirectlyAddressedSet.html#adeeb91470efa6dae57ebb79c628c4bc8" title="levels of the structure">level</a>[i]-&gt;newIterator();</div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;        <a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#ae4eb65beabbaa126db89529f3d3e2f3a" title="Restarts the enumeration.">restart</a>();</div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;}</div>
<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;</div>
<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00216"></a><span class="lineno"><a class="code" href="classMultiLevelDirectlyAddressedSet_1_1MultiIterator.html#a77025b8f9c4af6dd48cfc8886767bc07">  216</a></span>&#160;<a class="code" href="classMultiLevelDirectlyAddressedSet.html#a4b0f810e99fba35d4846af44f24452f0">MultiLevelDirectlyAddressedSet&lt;T&gt;::MultiIterator::MultiIterator</a>(<a class="code" href="classMultiLevelDirectlyAddressedSet.html" title="An implementation of DirectlyAddressedSet using a static multilevel bitmap as data structure...">MultiLevelDirectlyAddressedSet&lt;T&gt;</a> * t, <a class="code" href="classBitMapDirectlyAddressedSet.html" title="A DirectlyAddressedSet implemented with an array of nodes, each node corresponding to a word of the s...">BitMapDirectlyAddressedSet&lt;T&gt;</a> * fiter, <a class="code" href="classFilter.html" title="It provides the ability of filtering the enumeration of a DirectlyAddressedSet.">Filter&lt;T&gt;</a> * fil) : <a class="code" href="classDirectlyAddressedSet.html" title="A static or dynamic set of elements with direct addressing.">DirectlyAddressedSet</a>::<a class="code" href="classDirectlyAddressedSet_1_1Iterator.html" title="A general iterator to scan a DirectlyAddressedSet.">Iterator</a>(t), <a class="code" href="classMultiLevelDirectlyAddressedSet.html#a86b05a7f545453522513f67716b385fb">height</a>(t-&gt;<a class="code" href="classMultiLevelDirectlyAddressedSet.html#a1fa981940bb9ab7f4249b9495d9d58a4" title="number of levels">h</a>), levelit(new <a class="code" href="classDirectlyAddressedSet.html" title="A static or dynamic set of elements with direct addressing.">DirectlyAddressedSet</a>::<a class="code" href="classDirectlyAddressedSet_1_1Iterator.html" title="A general iterator to scan a DirectlyAddressedSet.">Iterator</a>*[<a class="code" href="classMultiLevelDirectlyAddressedSet.html#a86b05a7f545453522513f67716b385fb">height</a>]) {</div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;        <span class="keywordtype">int</span> i;</div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;        <span class="keywordflow">for</span> (i = 0; i &lt; <a class="code" href="classMultiLevelDirectlyAddressedSet_1_1MultiIterator.html#a589c0c16726eaaf789af0fefaae4bd75" title="number of levels">height</a>; i++)</div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;                <a class="code" href="classMultiLevelDirectlyAddressedSet_1_1MultiIterator.html#a562140b9ab113c40266bf81916a4de7c" title="iterator for each level">levelit</a>[i] = t-&gt;<a class="code" href="classMultiLevelDirectlyAddressedSet.html#adeeb91470efa6dae57ebb79c628c4bc8" title="levels of the structure">level</a>[i]-&gt;newIterator(fiter, fil);</div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;        <a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#ae4eb65beabbaa126db89529f3d3e2f3a" title="Restarts the enumeration.">restart</a>();</div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;}</div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;</div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00224"></a><span class="lineno"><a class="code" href="classMultiLevelDirectlyAddressedSet_1_1MultiIterator.html#ab27100919856c7e7226b16ac0eefc4c0">  224</a></span>&#160;<a class="code" href="classMultiLevelDirectlyAddressedSet.html" title="An implementation of DirectlyAddressedSet using a static multilevel bitmap as data structure...">MultiLevelDirectlyAddressedSet&lt;T&gt;::MultiIterator::~MultiIterator</a>() {</div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;        <span class="keywordtype">int</span> i;</div>
<div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;        <span class="keywordflow">for</span> (i = 0; i &lt; <a class="code" href="classMultiLevelDirectlyAddressedSet.html#a86b05a7f545453522513f67716b385fb">height</a>; i++)</div>
<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;                <span class="keyword">delete</span> levelit[i];</div>
<div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;        <span class="keyword">delete</span>[] levelit;</div>
<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;}</div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;</div>
<div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00232"></a><span class="lineno"><a class="code" href="classMultiLevelDirectlyAddressedSet_1_1MultiIterator.html#ad3cd5226fa6f397a1bbe323fd4603851">  232</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classMultiLevelDirectlyAddressedSet.html" title="An implementation of DirectlyAddressedSet using a static multilevel bitmap as data structure...">MultiLevelDirectlyAddressedSet&lt;T&gt;::MultiIterator::restartFrom</a>(<span class="keywordtype">long</span> from) {</div>
<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;        idxInNextNode = from + <span class="keyword">sizeof</span>(T) - this-&gt;<a class="code" href="classBitTools.html#a0d23be61dc34b44bbf6aee9d26436ff4">remainder</a>(from);</div>
<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;        <span class="keywordtype">int</span> l;</div>
<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;        <span class="keywordflow">for</span> (l = 0; l &lt; <a class="code" href="classMultiLevelDirectlyAddressedSet.html#a86b05a7f545453522513f67716b385fb">height</a>; l++) {</div>
<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;                levelit[l]-&gt;restartFrom(from);</div>
<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;                from &gt;&gt;= this-&gt;<a class="code" href="classBitTools.html#a0fe1acc3156ee09ecd71da226484f638" title="logarithmic of the size, in bits, of a word">logb</a>;</div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;        }</div>
<div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;}</div>
<div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;</div>
<div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00242"></a><span class="lineno"><a class="code" href="classMultiLevelDirectlyAddressedSet_1_1MultiIterator.html#a55915209b819c78735f38761be61c6ca">  242</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">long</span> <a class="code" href="classMultiLevelDirectlyAddressedSet.html" title="An implementation of DirectlyAddressedSet using a static multilevel bitmap as data structure...">MultiLevelDirectlyAddressedSet&lt;T&gt;::MultiIterator::next</a>() {</div>
<div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;        <span class="keywordtype">long</span> l = 0, ret;</div>
<div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;</div>
<div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;        <span class="comment">// up hill...</span></div>
<div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;        <span class="keywordflow">while</span> (l &lt; <a class="code" href="classMultiLevelDirectlyAddressedSet.html#a86b05a7f545453522513f67716b385fb">height</a> - 1 &amp;&amp; (ret = levelit[l++]-&gt;nextUpTo(idxInNextNode)) &gt;= idxInNextNode)</div>
<div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;                idxInNextNode &gt;&gt;= this-&gt;<a class="code" href="classBitTools.html#a0fe1acc3156ee09ecd71da226484f638" title="logarithmic of the size, in bits, of a word">logb</a>;</div>
<div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;</div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;        <span class="keywordflow">if</span> (l == <a class="code" href="classMultiLevelDirectlyAddressedSet.html#a86b05a7f545453522513f67716b385fb">height</a> - 1)</div>
<div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;                ret = levelit[l]-&gt;next();</div>
<div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;</div>
<div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;        <span class="comment">// down hill...</span></div>
<div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;        <span class="keywordtype">long</span> rem;</div>
<div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;        <span class="keywordflow">while</span> (l &gt; 0) {</div>
<div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;                l--;</div>
<div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;                levelit[l]-&gt;restartFrom(ret);</div>
<div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;                ret = levelit[l]-&gt;next();</div>
<div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;        }</div>
<div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;</div>
<div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;        <span class="keywordflow">if</span> (ret &gt;= idxInNextNode)</div>
<div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;                idxInNextNode = ret + <span class="keyword">sizeof</span>(T) - this-&gt;<a class="code" href="classBitTools.html#a0d23be61dc34b44bbf6aee9d26436ff4">remainder</a>(ret);</div>
<div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;        <span class="keywordflow">return</span> ret;</div>
<div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;}</div>
<div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;</div>
<div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00266"></a><span class="lineno"><a class="code" href="classMultiLevelDirectlyAddressedSet_1_1MultiIterator.html#aa692987322ed31614c52c43711011d9f">  266</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">long</span> <a class="code" href="classMultiLevelDirectlyAddressedSet.html" title="An implementation of DirectlyAddressedSet using a static multilevel bitmap as data structure...">MultiLevelDirectlyAddressedSet&lt;T&gt;::MultiIterator::nextUpTo</a>(<span class="keywordtype">long</span> to) {</div>
<div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;        <span class="keywordtype">long</span> l = 0, tto[<a class="code" href="classMultiLevelDirectlyAddressedSet.html#a86b05a7f545453522513f67716b385fb">height</a>], ret;</div>
<div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;</div>
<div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;        <span class="comment">// up hill...</span></div>
<div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;        tto[0] = to;</div>
<div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;        <span class="keywordflow">if</span> (to &lt; idxInNextNode)</div>
<div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;                idxInNextNode = to;</div>
<div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;        <span class="keywordflow">while</span> (l &lt; <a class="code" href="classMultiLevelDirectlyAddressedSet.html#a86b05a7f545453522513f67716b385fb">height</a> - 1 &amp;&amp; (ret = levelit[l++]-&gt;nextUpTo(idxInNextNode)) &gt;= idxInNextNode) {</div>
<div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;                idxInNextNode &gt;&gt;= this-&gt;<a class="code" href="classBitTools.html#a0fe1acc3156ee09ecd71da226484f638" title="logarithmic of the size, in bits, of a word">logb</a>;</div>
<div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;                tto[l+1] = tto[l] &gt;&gt; this-&gt;<a class="code" href="classBitTools.html#a0fe1acc3156ee09ecd71da226484f638" title="logarithmic of the size, in bits, of a word">logb</a>;</div>
<div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;        }</div>
<div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;</div>
<div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;        <span class="keywordflow">if</span> (l == <a class="code" href="classMultiLevelDirectlyAddressedSet.html#a86b05a7f545453522513f67716b385fb">height</a> - 1)</div>
<div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;                ret = levelit[l]-&gt;nextUpTo(tto[l]);</div>
<div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;</div>
<div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;        <span class="comment">// down hill...</span></div>
<div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;        <span class="keywordtype">long</span> rem;</div>
<div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;        <span class="keywordflow">while</span> (l &gt; 0 &amp;&amp; ret &lt; tto[l]) {</div>
<div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;                l--;</div>
<div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;                idxInNextNode = <span class="keyword">sizeof</span>(T) + ret &lt;&lt; this-&gt;<a class="code" href="classBitTools.html#a0fe1acc3156ee09ecd71da226484f638" title="logarithmic of the size, in bits, of a word">logb</a>;</div>
<div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;                <span class="keywordflow">if</span> (tto[l] &lt; idxInNextNode)</div>
<div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;                        idxInNextNode = tto[l];</div>
<div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;                levelit[l]-&gt;restartFrom(ret);</div>
<div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;                ret = levelit[l]-&gt;nextUpTo(idxInNextNode);</div>
<div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;        }</div>
<div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;</div>
<div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;        <span class="keywordflow">if</span> (ret &gt;= tto[l])</div>
<div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;                <span class="keywordflow">return</span> to;</div>
<div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;        <span class="keywordflow">return</span> ret;</div>
<div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160;}</div>
<div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160;</div>
<div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00298"></a><span class="lineno"><a class="code" href="classMultiLevelDirectlyAddressedSet.html#ae8e98bf9c0d8425405c7aa12d5d376fc">  298</a></span>&#160;<span class="keyword">inline</span> <a class="code" href="classDirectlyAddressedSet_1_1Iterator.html" title="A general iterator to scan a DirectlyAddressedSet.">DirectlyAddressedSet::Iterator</a>* <a class="code" href="classMultiLevelDirectlyAddressedSet.html#ae8e98bf9c0d8425405c7aa12d5d376fc" title="Starts a new iterator for this set.">MultiLevelDirectlyAddressedSet&lt;T&gt;::newIterator</a>() {</div>
<div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classMultiLevelDirectlyAddressedSet.html#a4b0f810e99fba35d4846af44f24452f0">MultiIterator</a>(<span class="keyword">this</span>);</div>
<div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;}</div>
<div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160;</div>
<div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00303"></a><span class="lineno"><a class="code" href="classMultiLevelDirectlyAddressedSet.html#a4b72a8d1da82dabb9c7359cba6556130">  303</a></span>&#160;<span class="keyword">inline</span> <a class="code" href="classDirectlyAddressedSet_1_1Iterator.html" title="A general iterator to scan a DirectlyAddressedSet.">DirectlyAddressedSet::Iterator</a>* <a class="code" href="classMultiLevelDirectlyAddressedSet.html#a4b72a8d1da82dabb9c7359cba6556130" title="Constructs a filtered iterator.">MultiLevelDirectlyAddressedSet&lt;T&gt;::newSetIterator</a>(<a class="code" href="classBitMapDirectlyAddressedSet.html" title="A DirectlyAddressedSet implemented with an array of nodes, each node corresponding to a word of the s...">BitMapDirectlyAddressedSet&lt;T&gt;</a> * d, <a class="code" href="classFilter.html" title="It provides the ability of filtering the enumeration of a DirectlyAddressedSet.">Filter&lt;T&gt;</a> * f) {</div>
<div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classMultiLevelDirectlyAddressedSet.html#a4b0f810e99fba35d4846af44f24452f0">MultiIterator</a>(<span class="keyword">this</span>, d, f);</div>
<div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;}</div>
<div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160;</div>
<div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00308"></a><span class="lineno"><a class="code" href="classMultiLevelDirectlyAddressedSet.html#a9a2bdb4e574330b4f0680f2767cf1e2c">  308</a></span>&#160;<span class="keyword">inline</span> <a class="code" href="classDirectlyAddressedSet_1_1Iterator.html" title="A general iterator to scan a DirectlyAddressedSet.">DirectlyAddressedSet::Iterator</a>* <a class="code" href="classMultiLevelDirectlyAddressedSet.html#a9a2bdb4e574330b4f0680f2767cf1e2c" title="An Iterator for the complement of the set represented by the object.">MultiLevelDirectlyAddressedSet&lt;T&gt;::newComplIterator</a>() {</div>
<div class="line"><a name="l00309"></a><span class="lineno">  309</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="classMultiLevelDirectlyAddressedSet.html#adeeb91470efa6dae57ebb79c628c4bc8" title="levels of the structure">level</a>[0]-&gt;newComplIterator();</div>
<div class="line"><a name="l00310"></a><span class="lineno">  310</span>&#160;}</div>
<div class="line"><a name="l00311"></a><span class="lineno">  311</span>&#160;</div>
<div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00313"></a><span class="lineno"><a class="code" href="classMultiLevelDirectlyAddressedSet.html#a9c0b92b3ac74b50c859bcecfbd274a5f">  313</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">long</span> <a class="code" href="classMultiLevelDirectlyAddressedSet.html#a9c0b92b3ac74b50c859bcecfbd274a5f" title="Adds a new level to the structure (optional operation).">MultiLevelDirectlyAddressedSet&lt;T&gt;::newLevel</a>(BitMapDirectlyAddressedSetFactory&lt;T&gt; * f) {</div>
<div class="line"><a name="l00314"></a><span class="lineno">  314</span>&#160;        <span class="comment">//create the new level</span></div>
<div class="line"><a name="l00315"></a><span class="lineno">  315</span>&#160;        <span class="keywordtype">int</span> sz = <a class="code" href="classMultiLevelDirectlyAddressedSet.html#adeeb91470efa6dae57ebb79c628c4bc8" title="levels of the structure">level</a>[<a class="code" href="classMultiLevelDirectlyAddressedSet.html#a1fa981940bb9ab7f4249b9495d9d58a4" title="number of levels">h</a>-1]-&gt;size();</div>
<div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160;        sz = (sz &gt;&gt; this-&gt;<a class="code" href="classBitTools.html#a0fe1acc3156ee09ecd71da226484f638" title="logarithmic of the size, in bits, of a word">logb</a>) &lt;&lt; this-&gt;<a class="code" href="classBitTools.html#a0fe1acc3156ee09ecd71da226484f638" title="logarithmic of the size, in bits, of a word">logb</a> == sz? (sz &gt;&gt; this-&gt;<a class="code" href="classBitTools.html#a0fe1acc3156ee09ecd71da226484f638" title="logarithmic of the size, in bits, of a word">logb</a>): (sz &gt;&gt; this-&gt;<a class="code" href="classBitTools.html#a0fe1acc3156ee09ecd71da226484f638" title="logarithmic of the size, in bits, of a word">logb</a>) + 1;</div>
<div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160;        <a class="code" href="classMultiLevelDirectlyAddressedSet.html#adeeb91470efa6dae57ebb79c628c4bc8" title="levels of the structure">level</a>[<a class="code" href="classMultiLevelDirectlyAddressedSet.html#a1fa981940bb9ab7f4249b9495d9d58a4" title="number of levels">h</a>++] = f-&gt;newInstance(sz);</div>
<div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160;</div>
<div class="line"><a name="l00319"></a><span class="lineno">  319</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="classMultiLevelDirectlyAddressedSet.html#a1fa981940bb9ab7f4249b9495d9d58a4" title="number of levels">h</a>;</div>
<div class="line"><a name="l00320"></a><span class="lineno">  320</span>&#160;}</div>
<div class="line"><a name="l00321"></a><span class="lineno">  321</span>&#160;</div>
<div class="line"><a name="l00322"></a><span class="lineno">  322</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00323"></a><span class="lineno"><a class="code" href="classMultiLevelDirectlyAddressedSet.html#a86b05a7f545453522513f67716b385fb">  323</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">long</span> <a class="code" href="classMultiLevelDirectlyAddressedSet.html#a86b05a7f545453522513f67716b385fb">MultiLevelDirectlyAddressedSet&lt;T&gt;::height</a>() {</div>
<div class="line"><a name="l00324"></a><span class="lineno">  324</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="classMultiLevelDirectlyAddressedSet.html#a1fa981940bb9ab7f4249b9495d9d58a4" title="number of levels">h</a>;</div>
<div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;}</div>
<div class="line"><a name="l00326"></a><span class="lineno">  326</span>&#160;</div>
<div class="line"><a name="l00327"></a><span class="lineno">  327</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00328"></a><span class="lineno"><a class="code" href="classMultiLevelDirectlyAddressedSet.html#a04c9ab9e7b0d700aefa6cb6db3fa11af">  328</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">long</span> <a class="code" href="classMultiLevelDirectlyAddressedSet.html#a04c9ab9e7b0d700aefa6cb6db3fa11af" title="Determine the first element of the complement of the set represented by the current object...">MultiLevelDirectlyAddressedSet&lt;T&gt;::firstInCompl</a>() {</div>
<div class="line"><a name="l00329"></a><span class="lineno">  329</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="classMultiLevelDirectlyAddressedSet.html#adeeb91470efa6dae57ebb79c628c4bc8" title="levels of the structure">level</a>[0]-&gt;firstInCompl();</div>
<div class="line"><a name="l00330"></a><span class="lineno">  330</span>&#160;}</div>
<div class="line"><a name="l00331"></a><span class="lineno">  331</span>&#160;</div>
<div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160;</div>
<div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00334"></a><span class="lineno"><a class="code" href="classMultiLevelDirectlyAddressedSet.html#adccf217b384bf0b02164f29e56889e15">  334</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">long</span> <a class="code" href="classMultiLevelDirectlyAddressedSet.html#adccf217b384bf0b02164f29e56889e15">MultiLevelDirectlyAddressedSet&lt;T&gt;::cardOfSet</a>() {</div>
<div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="classMultiLevelDirectlyAddressedSet.html#adeeb91470efa6dae57ebb79c628c4bc8" title="levels of the structure">level</a>[0]-&gt;cardOfSet();</div>
<div class="line"><a name="l00336"></a><span class="lineno">  336</span>&#160;}</div>
<div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160;</div>
<div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00339"></a><span class="lineno"><a class="code" href="classMultiLevelDirectlyAddressedSet.html#af620d1b94b802559dc0d5784d9ad5276">  339</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">long</span> <a class="code" href="classMultiLevelDirectlyAddressedSet.html#af620d1b94b802559dc0d5784d9ad5276">MultiLevelDirectlyAddressedSet&lt;T&gt;::cardOfCompl</a>() {</div>
<div class="line"><a name="l00340"></a><span class="lineno">  340</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="classMultiLevelDirectlyAddressedSet.html#adeeb91470efa6dae57ebb79c628c4bc8" title="levels of the structure">level</a>[0]-&gt;cardOfCompl();</div>
<div class="line"><a name="l00341"></a><span class="lineno">  341</span>&#160;}</div>
<div class="line"><a name="l00342"></a><span class="lineno">  342</span>&#160;</div>
<div class="line"><a name="l00343"></a><span class="lineno">  343</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00344"></a><span class="lineno"><a class="code" href="classMultiLevelDirectlyAddressedSet.html#a00cf0bf943365934b341a0a69ddfcce0">  344</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classMultiLevelDirectlyAddressedSet.html#a00cf0bf943365934b341a0a69ddfcce0">MultiLevelDirectlyAddressedSet&lt;T&gt;::isEmpty</a>() {</div>
<div class="line"><a name="l00345"></a><span class="lineno">  345</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="classMultiLevelDirectlyAddressedSet.html#adeeb91470efa6dae57ebb79c628c4bc8" title="levels of the structure">level</a>[0]-&gt;isEmpty();</div>
<div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160;}</div>
<div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160;</div>
<div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00349"></a><span class="lineno"><a class="code" href="classMultiLevelDirectlyAddressedSet.html#aff41b4ecea502a806cd47a1b28b25ba6">  349</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">char</span> * <a class="code" href="classMultiLevelDirectlyAddressedSet.html#aff41b4ecea502a806cd47a1b28b25ba6" title="Returns an array containing all of the elements in this set in increasing order.">MultiLevelDirectlyAddressedSet&lt;T&gt;::toArray</a>(<span class="keywordtype">long</span>* size) {</div>
<div class="line"><a name="l00350"></a><span class="lineno">  350</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="classMultiLevelDirectlyAddressedSet.html#adeeb91470efa6dae57ebb79c628c4bc8" title="levels of the structure">level</a>[0]-&gt;toArray(size);</div>
<div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160;}</div>
<div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160;</div>
<div class="line"><a name="l00353"></a><span class="lineno">  353</span>&#160;<span class="keyword">template</span>&lt;&gt;</div>
<div class="line"><a name="l00354"></a><span class="lineno"><a class="code" href="classMultiLevelDirectlyAddressedSet.html#a6d2cde6e85fc1d006b2ccdd9f89c304a">  354</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classMultiLevelDirectlyAddressedSet.html#a1c7124135232bc7a54c1e944babfae07">MultiLevelDirectlyAddressedSet&lt;int&gt;::show</a>() {</div>
<div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160;        printf(<span class="stringliteral">&quot;Estrutura!!! \n&quot;</span>);</div>
<div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; <a class="code" href="classMultiLevelDirectlyAddressedSet.html#a1fa981940bb9ab7f4249b9495d9d58a4" title="number of levels">h</a>; i++) {</div>
<div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;                printf(<span class="stringliteral">&quot;vetor no nivel %d : size = %lu \n&quot;</span>, i, <a class="code" href="classMultiLevelDirectlyAddressedSet.html#adeeb91470efa6dae57ebb79c628c4bc8" title="levels of the structure">level</a>[i]-&gt;<a class="code" href="classDirectlyAddressedSet.html#a68b2f85831f12352973e8f64fb61a924" title="The size of the universe.">universeSize</a>());</div>
<div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160;                <span class="keywordflow">for</span> (<span class="keywordtype">int</span> j = 0; j &lt; <a class="code" href="classMultiLevelDirectlyAddressedSet.html#adeeb91470efa6dae57ebb79c628c4bc8" title="levels of the structure">level</a>[i]-&gt;universeSize(); j++) {</div>
<div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160;                        <span class="keywordflow">if</span> (<a class="code" href="classMultiLevelDirectlyAddressedSet.html#adeeb91470efa6dae57ebb79c628c4bc8" title="levels of the structure">level</a>[i]-&gt;<a class="code" href="classBitMapDirectlyAddressedSet.html#aae0d63c2cf0f6dbf65657448b14287b5" title="Verify if a element of the universe is in the set.">isInSet</a>(j))</div>
<div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;                                printf(<span class="stringliteral">&quot;(%d)&quot;</span>,j);</div>
<div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160;                }</div>
<div class="line"><a name="l00362"></a><span class="lineno">  362</span>&#160;                printf(<span class="stringliteral">&quot;\n&quot;</span>);</div>
<div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160;        }</div>
<div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160;}</div>
<div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;</div>
<div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160;<span class="keyword">template</span>&lt;&gt;</div>
<div class="line"><a name="l00367"></a><span class="lineno"><a class="code" href="classMultiLevelDirectlyAddressedSet.html#a4cb9b9aaea4a4d9e2d04482788a843d3">  367</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classMultiLevelDirectlyAddressedSet.html#a1c7124135232bc7a54c1e944babfae07">MultiLevelDirectlyAddressedSet&lt;long&gt;::show</a>() {</div>
<div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160;        printf(<span class="stringliteral">&quot;Estrutura!!! \n&quot;</span>);</div>
<div class="line"><a name="l00369"></a><span class="lineno">  369</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; <a class="code" href="classMultiLevelDirectlyAddressedSet.html#a1fa981940bb9ab7f4249b9495d9d58a4" title="number of levels">h</a>; i++) {</div>
<div class="line"><a name="l00370"></a><span class="lineno">  370</span>&#160;                printf(<span class="stringliteral">&quot;vetor no nivel %d : size = %lu \n&quot;</span>, i, <a class="code" href="classMultiLevelDirectlyAddressedSet.html#adeeb91470efa6dae57ebb79c628c4bc8" title="levels of the structure">level</a>[i]-&gt;<a class="code" href="classDirectlyAddressedSet.html#a68b2f85831f12352973e8f64fb61a924" title="The size of the universe.">universeSize</a>());</div>
<div class="line"><a name="l00371"></a><span class="lineno">  371</span>&#160;                <span class="keywordflow">for</span> (<span class="keywordtype">long</span> j = 0; j &lt; <a class="code" href="classMultiLevelDirectlyAddressedSet.html#adeeb91470efa6dae57ebb79c628c4bc8" title="levels of the structure">level</a>[i]-&gt;universeSize(); j++) {</div>
<div class="line"><a name="l00372"></a><span class="lineno">  372</span>&#160;                        <span class="keywordflow">if</span> (<a class="code" href="classMultiLevelDirectlyAddressedSet.html#adeeb91470efa6dae57ebb79c628c4bc8" title="levels of the structure">level</a>[i]-&gt;<a class="code" href="classBitMapDirectlyAddressedSet.html#aae0d63c2cf0f6dbf65657448b14287b5" title="Verify if a element of the universe is in the set.">isInSet</a>(j))</div>
<div class="line"><a name="l00373"></a><span class="lineno">  373</span>&#160;                                printf(<span class="stringliteral">&quot;(%lu)&quot;</span>,j);</div>
<div class="line"><a name="l00374"></a><span class="lineno">  374</span>&#160;                }</div>
<div class="line"><a name="l00375"></a><span class="lineno">  375</span>&#160;                printf(<span class="stringliteral">&quot;\n&quot;</span>);</div>
<div class="line"><a name="l00376"></a><span class="lineno">  376</span>&#160;        }</div>
<div class="line"><a name="l00377"></a><span class="lineno">  377</span>&#160;}</div>
<div class="line"><a name="l00378"></a><span class="lineno">  378</span>&#160;</div>
<div class="line"><a name="l00384"></a><span class="lineno">  384</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00385"></a><span class="lineno"><a class="code" href="classvEBTree.html">  385</a></span>&#160;<span class="keyword">class </span><a class="code" href="classvEBTree.html">vEBTree</a> : <span class="keyword">public</span> <a class="code" href="classMultiLevelDirectlyAddressedSet.html" title="An implementation of DirectlyAddressedSet using a static multilevel bitmap as data structure...">MultiLevelDirectlyAddressedSet</a>&lt;T&gt; {</div>
<div class="line"><a name="l00386"></a><span class="lineno">  386</span>&#160;</div>
<div class="line"><a name="l00387"></a><span class="lineno">  387</span>&#160;};</div>
<div class="line"><a name="l00388"></a><span class="lineno">  388</span>&#160;</div>
<div class="line"><a name="l00395"></a><span class="lineno">  395</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00396"></a><span class="lineno"><a class="code" href="classMultiArrayDirectlyAddressedSet.html">  396</a></span>&#160;<span class="keyword">class </span><a class="code" href="classMultiArrayDirectlyAddressedSet.html" title="A MultiLevelDirectlyAddressedSet implemented with an ArrayBitMapDirectlyAddressedSet per level...">MultiArrayDirectlyAddressedSet</a> : <span class="keyword">public</span> <a class="code" href="classMultiLevelDirectlyAddressedSet.html" title="An implementation of DirectlyAddressedSet using a static multilevel bitmap as data structure...">MultiLevelDirectlyAddressedSet</a>&lt;T&gt; {</div>
<div class="line"><a name="l00397"></a><span class="lineno">  397</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00398"></a><span class="lineno"><a class="code" href="classMultiArrayDirectlyAddressedSet.html#a2fd89832ca089dd85a758b22ea8f2453">  398</a></span>&#160;        <a class="code" href="classMultiArrayDirectlyAddressedSet.html#a2fd89832ca089dd85a758b22ea8f2453">MultiArrayDirectlyAddressedSet</a>(<span class="keywordtype">long</span> <a class="code" href="classDirectlyAddressedSet.html#a72575479afb5dd067267fa92913bc80a" title="the size of the universe">u</a>, <span class="keywordtype">long</span> l) : <a class="code" href="classMultiLevelDirectlyAddressedSet.html" title="An implementation of DirectlyAddressedSet using a static multilevel bitmap as data structure...">MultiLevelDirectlyAddressedSet</a>&lt;T&gt;(u) {</div>
<div class="line"><a name="l00399"></a><span class="lineno">  399</span>&#160;                <span class="keywordtype">long</span> i;</div>
<div class="line"><a name="l00400"></a><span class="lineno">  400</span>&#160;                <span class="keywordflow">for</span> (i = 0; i &lt; l; i++)</div>
<div class="line"><a name="l00401"></a><span class="lineno">  401</span>&#160;                        <a class="code" href="classMultiLevelDirectlyAddressedSet.html" title="An implementation of DirectlyAddressedSet using a static multilevel bitmap as data structure...">MultiLevelDirectlyAddressedSet&lt;T&gt;::newLevel</a>(<span class="keyword">new</span> <a class="code" href="classArrayBitMapDirectlyAddressedSetFactory.html">ArrayBitMapDirectlyAddressedSetFactory&lt;T&gt;</a>(u));</div>
<div class="line"><a name="l00402"></a><span class="lineno">  402</span>&#160;        };</div>
<div class="line"><a name="l00403"></a><span class="lineno">  403</span>&#160;</div>
<div class="line"><a name="l00404"></a><span class="lineno"><a class="code" href="classMultiArrayDirectlyAddressedSet.html#a285cd4f9d5b2d134db569f8dc323c581">  404</a></span>&#160;        <span class="keywordtype">long</span> <a class="code" href="classMultiArrayDirectlyAddressedSet.html#a285cd4f9d5b2d134db569f8dc323c581" title="Adds a new level to the structure (optional operation).">newLevel</a>(BitMapDirectlyAddressedSetFactory&lt;T&gt; * f) { <span class="keywordflow">return</span> -1; };</div>
<div class="line"><a name="l00405"></a><span class="lineno">  405</span>&#160;</div>
<div class="line"><a name="l00406"></a><span class="lineno">  406</span>&#160;};</div>
<div class="line"><a name="l00407"></a><span class="lineno">  407</span>&#160;</div>
<div class="line"><a name="l00415"></a><span class="lineno">  415</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00416"></a><span class="lineno"><a class="code" href="classMultiHashDirectlyAddressedSet.html">  416</a></span>&#160;<span class="keyword">class </span><a class="code" href="classMultiHashDirectlyAddressedSet.html">MultiHashDirectlyAddressedSet</a> : <span class="keyword">public</span> <a class="code" href="classMultiLevelDirectlyAddressedSet.html" title="An implementation of DirectlyAddressedSet using a static multilevel bitmap as data structure...">MultiLevelDirectlyAddressedSet</a>&lt;T&gt; {</div>
<div class="line"><a name="l00417"></a><span class="lineno">  417</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00418"></a><span class="lineno"><a class="code" href="classMultiHashDirectlyAddressedSet.html#ab92d0cdf74fdd80ef1ba3043510551cf">  418</a></span>&#160;        <a class="code" href="classMultiHashDirectlyAddressedSet.html#ab92d0cdf74fdd80ef1ba3043510551cf">MultiHashDirectlyAddressedSet</a>(<span class="keywordtype">long</span> <a class="code" href="classDirectlyAddressedSet.html#a72575479afb5dd067267fa92913bc80a" title="the size of the universe">u</a>, <span class="keywordtype">long</span> l) : <a class="code" href="classMultiLevelDirectlyAddressedSet.html" title="An implementation of DirectlyAddressedSet using a static multilevel bitmap as data structure...">MultiLevelDirectlyAddressedSet</a>&lt;T&gt;(u) {</div>
<div class="line"><a name="l00419"></a><span class="lineno">  419</span>&#160;                <span class="keywordflow">if</span> (l &lt; 2)</div>
<div class="line"><a name="l00420"></a><span class="lineno">  420</span>&#160;                        <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00421"></a><span class="lineno">  421</span>&#160;</div>
<div class="line"><a name="l00422"></a><span class="lineno">  422</span>&#160;                <span class="keywordtype">long</span> i;</div>
<div class="line"><a name="l00423"></a><span class="lineno">  423</span>&#160;                <a class="code" href="classMultiLevelDirectlyAddressedSet.html#a9c0b92b3ac74b50c859bcecfbd274a5f" title="Adds a new level to the structure (optional operation).">MultiLevelDirectlyAddressedSet&lt;T&gt;::newLevel</a>(<span class="keyword">new</span> <a class="code" href="classHashBitMapDirectlyAddressedSetFactory.html">HashBitMapDirectlyAddressedSetFactory&lt;T&gt;</a>(u));</div>
<div class="line"><a name="l00424"></a><span class="lineno">  424</span>&#160;                <span class="keywordflow">for</span> (i = 1; i &lt; l; i++)</div>
<div class="line"><a name="l00425"></a><span class="lineno">  425</span>&#160;                        <a class="code" href="classMultiLevelDirectlyAddressedSet.html" title="An implementation of DirectlyAddressedSet using a static multilevel bitmap as data structure...">MultiLevelDirectlyAddressedSet&lt;T&gt;::newLevel</a>(<span class="keyword">new</span> <a class="code" href="classArrayBitMapDirectlyAddressedSetFactory.html">ArrayBitMapDirectlyAddressedSetFactory&lt;T&gt;</a>(u));</div>
<div class="line"><a name="l00426"></a><span class="lineno">  426</span>&#160;        };</div>
<div class="line"><a name="l00427"></a><span class="lineno">  427</span>&#160;</div>
<div class="line"><a name="l00428"></a><span class="lineno"><a class="code" href="classMultiHashDirectlyAddressedSet.html#aff7309258145fd7981343ce0c3c55c74">  428</a></span>&#160;        <span class="keywordtype">long</span> <a class="code" href="classMultiHashDirectlyAddressedSet.html#aff7309258145fd7981343ce0c3c55c74" title="Adds a new level to the structure (optional operation).">newLevel</a>(BitMapDirectlyAddressedSetFactory&lt;T&gt; * f) { <span class="keywordflow">return</span> -1; };</div>
<div class="line"><a name="l00429"></a><span class="lineno">  429</span>&#160;</div>
<div class="line"><a name="l00430"></a><span class="lineno">  430</span>&#160;};</div>
<div class="line"><a name="l00431"></a><span class="lineno">  431</span>&#160;</div>
<div class="line"><a name="l00432"></a><span class="lineno">  432</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* MULTILEVELDIRECTLYADDRESSEDSET_H_ */</span><span class="preprocessor"></span></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Nov 26 2012 17:06:45 for Data Structures for Sets and Graphs by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.1.1
</small></address>
</body>
</html>
